var e = getApp();

Component({
    properties: {
        disp: {
            type: String,
            value: ""
        },
        centerBtnTxt: {
            type: String,
            value: ""
        },
        rightBtnTxt: {
            type: String,
            value: ""
        },
        leftBtnTxt: {
            type: String,
            value: ""
        },
        editable: {
            type: Boolean,
            value: !1
        },
        showVendor: {
            type: Boolean,
            value: !1
        },
        card: {
            type: Object,
            value: {}
        },
        isBtnShare: {
            type: Boolean,
            value: !1
        }
    },
    data: {
        server: e.rserver,
        serverUrl: e.rserverUrl
    },
    methods: {
        trigger: function(e) {
            this.triggerEvent("btntap", {
                btn: e.currentTarget.dataset.btn
            }, {});
        },
        showFileChoose: function() {
            this.properties.editable && this.triggerEvent("choosetap", {}, {});
        },
        showFeildEdit: function(e) {
            this.properties.editable && this.triggerEvent("feildtap", {
                feild: e.currentTarget.dataset.feild,
                tip: e.currentTarget.dataset.tip
            }, {});
        },
        dail: function() {
            wx.makePhoneCall({
                phoneNumber: this.properties.card.mobile
            });
        }
    }
});